#ifndef MAGICSTRING_H_
#define MAGICSTRING_H_

#include <string>
#include <map>

class MagicString
{
public:
	MagicString(std::string const & input) : str_(input) {}
	std::string toString() const;
	bool setValue(std::string const & var, int value); 
private:
	bool hasVar(std::string const & var) const;
	std::string str_;
	std::map<std::string, int> values_;
};

#endif